package bookpos.entity;
/*
 ---------------------------------------------
 CREATE TABLE `customer` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `CUSTOMERNO` varchar(36) NOT NULL,
  `CUSTOMERNAME` varchar(36) NOT NULL,
  `TELEPHONE` varchar(36) DEFAULT NULL,
  `ADDRESS` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`ID`),
  UNIQUE KEY `CUSTOMERNO` (`CUSTOMERNO`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8;
------------------------------------------------------------ 
 */

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

/**
 * 支付实体类
 * @author WZB
 *
 */
@Entity
@Table(name = "bookpos_payment")
@DynamicInsert(true)
@DynamicUpdate(true)
public class Payment implements java.io.Serializable {

	@Id
	@Column(name ="oid",nullable=false,length=30)
	private String oid;
	@Column(name ="get_money",nullable=false,length=10)
	private Double get_money;
	@Column(name ="back_money",nullable=false,length=10)
	private Double back_money;
	@Column(name ="total",nullable=false,length=10)
	private Double total;
	@Column(name ="status",nullable=false,length=1)
	private Integer status;
	
	
	public Double getGet_money() {
		return get_money;
	}
	public void setGet_money(Double get_money) {
		this.get_money = get_money;
	}
	public Double getBack_money() {
		return back_money;
	}
	public void setBack_money(Double back_money) {
		this.back_money = back_money;
	}
	public Double getTotal() {
		return total;
	}
	public void setTotal(Double total) {
		this.total = total;
	}
	public String getOid() {
		return oid;
	}
	public void setOid(String oid) {
		this.oid = oid;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	
	
}
